<?php
class Api_Lib_Rsp_Uni {

    function __construct() {
        // $this->_model = FLEA::getSingleton('Model_Acm_Qrcodeverify');
        // header('Access-Control-Allow-Origin:*');
        // header('Access-Control-Allow-Origin:http://localhost:8080');
    }

    function runTest($params,& $service){
        $service->send_user_error('ERROR_DATA' ,array(2));
        return array(1,2,3,4,5);
    }

    /**
     * @desc ：登陆验证
     * Time：2019年9月29日 17:39:52
     * @author ShenHao
    */
    function loginInfo($params = array(),& $service){
        if(1){
            /*$_data = array(
                'id'      =>$row['id'],
                'status'  =>$params['status'],
                'message' =>$params['message'],
            );
            $this->_model->update($_data);*/
        }else{
            $service->send_user_error('ERROR_TOKEN:未找到token相关的验证记录');
        }
        $userInfo = array(
            'userName'=>$params['userName'],
            'realName'=>$params['userName'],
        );
        $data = array(
            'userInfo'  => $userInfo,
            'success'   => true,
            'msg'       => '请求成功',
            'errorcode' => '0',
            'status'    => '200',
        );

        return $data;
    }

}
?>